import { CopyLabel } from '@/components/eai-design';
import Modals from '@/components/modals/Modals';

interface Props {
  open: boolean;
  url: string;
  title: string;
  header?: React.ReactNode;
  onCancel: () => void;
}

export const ViewAddressModal = ({ open, url, title, header, onCancel }: Props) => {
  return (
    <Modals
      footerCancelHidden
      open={open}
      title={title}
      width={555}
      onOk={onCancel}
      onCancel={onCancel}
    >
      {header}
      <CopyLabel text={url} />
    </Modals>
  );
};
